package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ClientsBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ClientsService extends BaseService<ClientsBean> {

	ClientsBean getClientsBeanById(String id) throws Exception;
	
	void removeClientsBeanById(String id) throws Exception;
	
	void removeClientsBeanByIds(String ids) throws Exception;
	
	ClientsBean saveClientsBean(ClientsBean crm) throws Exception;
	
	ClientsBean updateClientsBean(ClientsBean crm) throws Exception;
	
	Page<ClientsBean>  findClientsBeanByCond(ClientsBean bean,
			Page<ClientsBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveClientsBeanExt(String sql) throws Exception;

	String findClientsBeanExtCreate(String tableName) throws Exception;

	String findClientsBeanExtEdit(String tableName, String id)
			throws Exception;

	String findClientsBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasClientsBeanExtData(String tableName, String id)
			throws Exception;
}